package com.pikaq.service.impl;

import static org.junit.Assert.*;

import javax.annotation.Resource;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.pikaq.entity.User;
import com.pikaq.service.UserService;


@RunWith(SpringJUnit4ClassRunner.class)		//��ʾ�̳���SpringJUnit4ClassRunner��
@ContextConfiguration(locations = {"classpath:spring-mybatis.xml"})
public class UserServiceImplTest {

	@Resource
	private UserService userServiceImpl;
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testGetUserById() {
		System.out.print("kaisi");
		User user1  = new User();
		User user = userServiceImpl.getLogin(user1);
		assertEquals("wjn", user.getName());
		
	}

}
